#include <iostream>

using std::cout;
using std::endl;

class Complex{
public:
    Complex(int real,int image)
        :_real(real)
         ,_image(image)
    {

    }
    friend 
        Complex operator+(const Complex & lhs,const Complex & rhs);
    void print(){
        cout << _real <<":"<< _image << endl;
    }
private:
    int _real;
    int _image;
};

Complex operator+(const Complex & lhs,const Complex & rhs){
    return Complex(lhs._real+rhs._real,lhs._image+rhs._image);

}

void test(){
    Complex c1(3,2),c2(3,4);
    Complex c3 = c1+c2;
    c3.print();
}

int main()
{
    test();
    return 0;
}

